home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group92c.txt / 000091_icon-group-sender _Wed Nov 18 14:40:44 1992.msg < prev    next >
Internet Message Format  |  1993-01-04  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 18 Nov 1992 14:10:13 MST
  2. Date: Wed, 18 Nov 92 14:40:44 EST
  3. From: Paul_Abrahams@MTS.cc.Wayne.edu
  4. To: icon-group@cs.arizona.edu
  5. Message-Id: <529141@MTS.cc.Wayne.edu>
  6. Subject: Second argument to softf
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. Thanks to Clint Jeffery for providing the missing link needed to specify
  11. the second argument of sortf as a field name.  Applying the "name" function
  12. to a record object of record type R, you can determine the field occupying
  13. the i'th position of the record.  Inverting this procedure, you can
  14. determine the position (as an integer) of a field name.  Once you've done
  15. that, you have the second argument to sortf that you need.
  16.  
  17. Clint commented:
  18.  
  19. << Folks who don't believe in semi-colon insertion, let me know if you have
  20.  trouble reading this. >>
  21.  
  22. Yes, but a program (Icon or otherwise) with semicolons is also easy to
  23. read.  The semicolons don't interfere, at least for me.  I certainly agree
  24. that a program is easier to *write* without semicolons.  However, as I
  25. said in an earlier post, the Icon treatment of newlines precludes certain
  26. convenient conventions for line continuations.
  27.  
  28. Paul Abrahams
  29.  
  30.  
  31.